package zjh.msg.service.impl;

import org.apache.ibatis.session.SqlSession;
import zjh.msg.entity.User;
import zjh.msg.mapper.UserMapper;
import zjh.msg.service.UserService;
import zjh.msg.utils.MybatisUtil;

public class UserServiceImpl implements UserService {
    @Override
    public User login(String name, String pwd) {
        SqlSession sqlSession = MybatisUtil.getSqlSession();
        UserMapper mapper = sqlSession.getMapper(UserMapper.class);
        return mapper.login(name, pwd);
    }
}
